﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DTO.ApiEntity.OutPut
{
    public class BillingAllocationOutput_Dto
    {
        /// <summary>
        ///项目主键
        /// </summary>
        [Display(Name = "项目主键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectId { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();
        /// <summary>
        ///项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectName { get; set; }
        /// <summary>
        ///项目编号
        /// </summary>
        [Display(Name = "项目编号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectNumber { get; set; }
        /// <summary>
        ///项目开始时间
        /// </summary>
        [Display(Name = "项目开始时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public DateTime projectStarttime { get; set; }
        /// <summary>
        ///负责人
        /// </summary>
        [Display(Name = "负责人")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectPerson { get; set; }
        /// <summary> 
        ///项目经费(万元)
        /// </summary>
        [Display(Name = "项目经费(万元)")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? projectMoney { get; set; }
        /// <summary>
        ///可报销经费
        /// </summary>
        [Display(Name = "下拨项目总经费(万)")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public decimal allocationExpenditure { get; set; }
        /// <summary>
        /// 已报销经费
        /// </summary>
        public decimal ReimbursedExpenses { get; set; }
        /// <summary>
        /// 剩余经费
        /// </summary>
        public decimal RemainingFunds { get; set; }

    }
}
